<div class="container">
  <div class="mw-text-5">
    <h1 class="mb-0 pb-1 pb-md-2 pt-5 pt-md-9 h2">
      {% if collection.handle == 'all' %}
        {{ 'sections.collection_template.all_product' | t }}
      {% else %}
        {{- collection.title | escape -}}
      {% endif %}
    </h1>
    {%- if section.settings.show_collection_description -%}
      <div class="small">{{ collection.description }}</div>
    {%- endif -%}
  </div>
</div>
{% schema %}
  {
    "name": "Collection banner",
    "tag": "section",
    "settings": [
      {
        "type": "paragraph",
        "content": "To change collection descriptions or collection images, [edit your collections.](/admin/collections)"
      },
      {
        "type": "checkbox",
        "id": "show_collection_description",
        "default": true,
        "label": "Show collection description"
      }
    ]
  }
{% endschema %}
